package com.ruoyi.wm.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.wm.mapper.WmNursesMapper;
import com.ruoyi.wm.domain.WmNurses;
import com.ruoyi.wm.service.IWmNursesService;
import com.ruoyi.common.core.text.Convert;

/**
 * 护士信息Service业务层处理
 * 
 * @author hpf
 * @date 2021-12-03
 */
@Service
public class WmNursesServiceImpl implements IWmNursesService 
{
    @Autowired
    private WmNursesMapper wmNursesMapper;

    /**
     * 查询护士信息
     * 
     * @param id 护士信息ID
     * @return 护士信息
     */
    @Override
    public WmNurses selectWmNursesById(Long id)
    {
        return wmNursesMapper.selectWmNursesById(id);
    }

    /**
     * 查询护士信息列表
     * 
     * @param wmNurses 护士信息
     * @return 护士信息
     */
    @Override
    public List<WmNurses> selectWmNursesList(WmNurses wmNurses)
    {
        return wmNursesMapper.selectWmNursesList(wmNurses);
    }

    /**
     * 新增护士信息
     * 
     * @param wmNurses 护士信息
     * @return 结果
     */
    @Override
    public int insertWmNurses(WmNurses wmNurses)
    {
        return wmNursesMapper.insertWmNurses(wmNurses);
    }

    /**
     * 修改护士信息
     * 
     * @param wmNurses 护士信息
     * @return 结果
     */
    @Override
    public int updateWmNurses(WmNurses wmNurses)
    {
        return wmNursesMapper.updateWmNurses(wmNurses);
    }

    /**
     * 删除护士信息对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteWmNursesByIds(String ids)
    {
        return wmNursesMapper.deleteWmNursesByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除护士信息信息
     * 
     * @param id 护士信息ID
     * @return 结果
     */
    @Override
    public int deleteWmNursesById(Long id)
    {
        return wmNursesMapper.deleteWmNursesById(id);
    }
}
